#ifndef PANNER_H
#define PANNER_H

#include <QWidget>

namespace Ui {
    class Panner;
}

class Panner : public QWidget {
    Q_OBJECT
public:
    Panner(QWidget *parent = 0, const QSize& size = QSize());
    ~Panner();
    void setImage(const QImage& image);

public slots:
    void slotSizeChanged(const QSize& size);
    void slotZoomChanged(int);

protected:
    void changeEvent(QEvent *e);

signals:
    /** Test comment. */
    void signalRectangleChanged(const QRect& rectangle);

private:
    Ui::Panner *ui;
};

#endif // PANNER_H
